/*
 * @# SessionAwareResolver.java 2011-12-27 下午07:02:45
 * 
 * Copyright (C) 2010 - 2011 广州羿安信息科技有限公司
 * Guangzhou ianswer information technology co. ltd.
 * 
 * All rights reserved!
 */
package com.ianswer.px.common.resolver;

import org.springframework.core.MethodParameter;
import org.springframework.web.bind.support.WebArgumentResolver;
import org.springframework.web.context.request.NativeWebRequest;

/**
 * 对spring mvc中action方法级的拦截.
 * 
 * <beans:bean class=
 * "org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"
 * > <beans:property name="customArgumentResolver"> <beans:bean
 * class="com.ianswer.px.common.resolver.SessionAwareResolver" />
 * </beans:property> </beans:bean>
 * 
 * @author alvin hwang
 */
// FIXME 对spring mvc中action方法级的拦截未完成
public class SessionAwareResolver implements WebArgumentResolver {

	@Override
	public Object resolveArgument(MethodParameter methodparameter, NativeWebRequest nativewebrequest) throws Exception {
		System.out.println("****************************");
		return nativewebrequest.getNativeRequest();
	}

}
